﻿/*
 * Copyright © 2020, Wuxi Safover Intelligent Technology Co., Ltd. All rights reserved.
 * 
 * 无锡安永智能科技有限公司版权所有，未经许可，不得用于商业用途
 * 
 * Visit: https://www.safover.com/ 
 */

using System;
using System.Net;
using System.Net.Sockets;

namespace Ac.Bly
{
    public class ClientEventArgs : EventArgs
    {
        private Socket socket;

        public IPAddress IP
        {
            get { return ((IPEndPoint)this.socket.RemoteEndPoint).Address; }
        }
     
        public int Port
        {
            get { return ((IPEndPoint)this.socket.RemoteEndPoint).Port; }
        }

        public ClientEventArgs(Socket socket)
        {
            this.socket = socket;
        }
    }
}